<@mits.headerDiv />
<div class="Main" id="Main">
	<!--屏幕切换-->
   
    
    
	<!--左边-->
	<!--右边-->
	<div class="Main_body" id="Main_body">
		<div class="Main_right_top">
		 <div class="Main_bodyListBar_head">搜索条件 </div>
		 <br>
			 <form method="post" action="" id="myform" name="myform">
 		 <table border="0" cellspacing="1" cellpadding="0" class="addTable" >
        <tr>
            <td class="title">卡口名称：</td>
          <td class="content" >
			<input type="text"  id="passPort.passPortName"  name="passPort.passPortName" value="${passPort?if_exists.passPortName?if_exists}" />  
			</td>
			<td class="content" align="right">
			<input type="button"  class="button"  value="查询" onclick="search(0)"/> 
			 <input type="button" class="button" value="新增卡口" onclick="add()" />
			</td>
			 </tr>
			 </table >
		</form>		</div>
		<div class="Main_right_line"></div>
		
		  <div class="Main_bodyListBar">
				<div class="Main_bodyListBar_head"><span>卡口列表</span> </div>
				<@mits.showActionMsg />
				
	    <div class="Main_bodyListBar_body">
				  <table border="0" cellpadding="0" cellspacing="0" class="listTable">
					<tr>
					  
					 
					  <th width="15%" >卡口名称</th>
					  <th width="15%" >所属部门</th>
					  <th width="15%" >监控起始方向</th>
					  <th width="15%" >监控终止方向</th>
					  <th width="15%" >经度坐标</th>
					  <th width="15%" >纬度坐标</th>
					   <th width="14%" >管理卡口</th>
			
					</tr>
					<#if result?exists>
                <#assign passPorts = result.content>
                <#list passPorts as passPort>
					<tr onmouseover="listTable_trMouseOver(this)" onmouseout="listTable_trMouseOut(this)">					
					  <td>${passPort?if_exists.passPortName?if_exists}</td> 
					  <td>${passPort?if_exists.department?if_exists.departmentName?if_exists}</td>
					  <td>${passPort?if_exists.startpoint?if_exists}&nbsp;</td>
					 <td>${passPort?if_exists.endpoint?if_exists}&nbsp;</td>
					  <td>${passPort?if_exists.latitudeCoor?if_exists}&nbsp;</td>
					 <td>${passPort?if_exists.longitudeCoor?if_exists}&nbsp;</td>
					   <td><a href="javascript:onclick=edit('${passPort?if_exists.id?if_exists}')">编辑</a> <a href="javascript:onclick=del('${passPort?if_exists.id?if_exists}')">删除</a></td>
					</tr>
					</#list>
			 <@mpage.fillLine pageSize, result.content.size(), 7/>
                <tr class="foot">
                  <td colspan="7">
                    <#assign page = result.page>
                    <script language = 'JavaScript'>
                        function changePage(cpage){
                           // window.location="${base}/auth/system/passPortList.action?cleanSucMsg=true&currentPage="+cpage;
                           search(cpage);
                        }
                    </script>
                    <@mpage.showPageInfo page/>
                  &nbsp;</td>
                </tr>
                </#if>
				  </table>
			</div>
				<div class="Main_bodyListBar_bottom">
				  <div class="Main_bodyListBar_button"> 
				  </div>
					
				</div>
			<div class="Main_bodyListBar_foot"></div>
		  </div>
		</div>
	
</div>
<script lanague ="javascript">
 function search(cpage) {
  $('myform').action = "${base}/auth/system/passPortList.action?cleanSucMsg=true&currentPage="+cpage;
  $('myform').submit();
 }
  function add() {
   window.location = "${base}/auth/system/passPortAdd.action?cleanSucMsg=true";
  }
   function edit(id) {
   window.location = "${base}/auth/system/passPortEdit.action?cleanSucMsg=true&id="+id;
  }
   function del(id) {
    if(confirm("确认删除这个卡口吗？")) {
      window.location = "${base}/auth/system/passPortDel.action?id="+id;
     }
  }  
</script>
<@mits.footerDiv />


